package com.qining618.cms.cms.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * @author flt
 * @date 2019-09-19
 */
public enum ContentOperateEnum implements IEnum<Integer> {
    ADD(1, "新增"),
    EDIT(2, "修改"),
    CHECK(3, "审核"),
    REJECTED(4, "退回"),
    MOVE(5, "移动"),
    CYCLE(6, "回收"),
    PIGEONHOLE(7, "归档"),
    REUSE(8, "出档"),
    SHARED(9, "共享"),
    UP(11, "顶"),
    DOWN(12, "踩"),

    ;

    private final int code;
    private final String label;

    ContentOperateEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    public int getCode() {
        return code;
    }

    public String getLabel() {
        return label;
    }
}
